﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DALScolarite.Models
{
    public partial class scolarite_inscription
    {

        public List<scolarite_inscription> VerifInscripton(int idetudiants)
        {
            uvtmoyEntities ent = new uvtmoyEntities();
            var query = from s in ent.scolarite_inscription
                        where s.idetudiants == idetudiants
                        select s;
            if (query.Any())
            {
                scolarite_etudiants res = query.ToList<scolarite_inscription>();
                return res;
            }
            else
            {
                return null;
            }


        }

    }
}
